'DeclarationPublic Function New( _ ByVal deviceId As String, _ ByVal metrics As IEnumerable(Of SparkplugMetric) _ )
'UsageDim deviceId As String Dim metrics As IEnumerable(Of SparkplugMetric) Dim instance As New SparkplugDevice(deviceId, metrics)
public SparkplugDevice( string deviceId, IEnumerable<SparkplugMetric> metrics )
public: SparkplugDevice( String^ deviceId, IEnumerable<SparkplugMetric^>^ metrics )
Parameters
- deviceId
- The Sparkplug device ID.
The value represents a Sparkplug device ID. It must be a string with valid UTF-8 characters except for the reserved characters of '+' (plus), '/' (forward slash), and '#' (number sign).
The value of this parameter cannot be
null(Nothingin Visual Basic). - metrics
- The collection of Sparkplug metrics that this device publishes.
The value of this parameter cannot be
null(Nothingin Visual Basic).The individual elements of the parameter value cannot be
null(Nothingin Visual Basic).